<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020\7\10 0010
  Time: 9:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
    int count;
    Object c=application.getAttribute("count");
    if(c==null){
        count=1;
    }else {
        count=(Integer)c;
    }
    out.print("自服务器启动后，此页面已经被访问了"+count+"次");
    application.setAttribute("count",++count);
    %>
</body>
</html>
